package com.biz.primus.ms.member.listener;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;

import javax.annotation.PostConstruct;

/**
 * Created by liangbin on 2017/11/27.
 */
public abstract class AbstractBizEventListener <E extends ApplicationEvent> implements ApplicationListener<E> {
    @Override
//	@Transactional
    public void onApplicationEvent(E event) {
        handleEvent(event);
    }

    @PostConstruct
    void init() {

    }

    protected abstract void handleEvent(E event);
}
